<?php
if(!defined('IN_IBEIKE')) {
	exit('Access Denied');
}

class table_common_perm extends common_table
{
	public function __construct() {

		$this->_table = 'common_perm';
		$this->_pk    = 'pid';

		parent::__construct();
	}
	public function fetch_all_by_pid($pid){
		if(!empty($pid)&&$pid){
			return DB::fetch_all('SELECT * FROM %t WHERE pid=%s',array($this->_table,$pid));//返回数组包含各个字段的值
		}
		return false;
	}

	
}
?>